﻿@using SunTzu.Utility;
@model form_project
@{
    ViewBag.Title = Model.Title;
    Layout = "~/Views/Shared/Class/_Layout.cshtml";
    List<int> industries = new List<int>();
    if(!string.IsNullOrEmpty(Model.Industry))
    {
        industries.AddRange(Model.Industry.Split(',').Select(c => c.ParseToInt()));
    }
    
    bool isWaiting = Model.Id > 0 && Model.State == 0;
    bool isApproved = Model.State == 1;
    Model.Phase = Model.Phase.IsNullOrEmpty() ? "策划构思阶段" : Model.Phase;
}
<script src="/js/exhibitor.js"></script>
    <div class="registerForm registerFormInner">
    <form id="editForm" action="/Project/CreateProject?id=@Model.Id" method="post">
        <div class="registerFormSubTitle">文化产业项目信息</div>
        <ul>
            <li class="formProp">项目名称：</li>
            <li class="formShortLine">
                @Model.Title
            </li>
            <li class="clear"></li>
        </ul>
        <ul>
            <li class="formProp">项目执行时间：</li>
            <li class="formShortLine">
                @(Model.Month > 0 ? Model.Month.ToString() : "") 月
            </li>
            <li class="clear"></li>
        </ul>
        <ul>
            <li class="formProp">总投资额：</li>
            <li class="formShortLine">
                @Model.Investment
            </li>
            <li class="clear"></li>
        </ul>
        <ul>
            <li class="formProp">项目所处阶段：</li>
            <li class="formShortLine">
                @Model.Phase
            </li>
            <li class="clear"></li>
        </ul>
        <ul>
            <li class="formProp">项目知识产权情况：</li>
            <li class="formShortLine">
                @Model.PropertyRights
            </li>
            <li class="clear"></li>
        </ul>
        <ul>
            <li class="formProp">项目介绍：</li>
            <li class="formShortLine" style="width:400px">
                @Html.Raw((Model.Description ?? "").Replace("\n", "<br />"))
            </li>
            <li class="clear"></li>
        </ul>
    @if (!string.IsNullOrEmpty(Model.ProjectType0))
    {
        <div class="registerFormSubTitle">项目性质</div>
        if ((Model.ProjectType0 ?? "").Contains("0") || (Model.ProjectType0 ?? "").Contains("1"))
        {
        <ul>
            <li class="formProp">园区招商：</li>
            <li class="formShortLine" style="width:400px">
                @((Model.ProjectType0 ?? "").Contains("2") ? "企业入驻 " : "")
                @((Model.ProjectType0 ?? "").Contains("3") ? "园区建设 " : "")
            </li>
            <li class="clear"></li>
        </ul>
        }
        if ((Model.ProjectType0 ?? "").Contains("2") || (Model.ProjectType0 ?? "").Contains("3"))
        {
        <ul>
            <li class="formProp">资金合作：</li>
            <li class="formShortLine" style="width:400px">
                @((Model.ProjectType0 ?? "").Contains("2") ? "项目融资 " : "")
                @((Model.ProjectType0 ?? "").Contains("3") ? "投资项目 " : "")
            </li>
            <li class="clear"></li>
        </ul>
        }
        if ((Model.ProjectType0 ?? "").Contains("4")
            || (Model.ProjectType0 ?? "").Contains("5")
            || (Model.ProjectType0 ?? "").Contains("6"))
        {
        <ul>
            <li class="formProp">经营合作：</li>
            <li class="formShortLine" style="width:400px">
                @((Model.ProjectType0 ?? "").Contains("4") ? "产品代理 " : "")
                @((Model.ProjectType0 ?? "").Contains("5") ? "加盟合作 " : "")
                @((Model.ProjectType0 ?? "").Contains("6") ? "运营推广 " : "")
            </li>
            <li class="clear"></li>
        </ul>
        }
        if ((Model.ProjectType0 ?? "").Contains("7")
            || (Model.ProjectType0 ?? "").Contains("8")
            || (Model.ProjectType0 ?? "").Contains("9"))
        {
        <ul>
            <li class="formProp">产品开发：</li>
            <li class="formShortLine" style="width:400px">
                @((Model.ProjectType0 ?? "").Contains("7") ? "设计合作 " : "")
                @((Model.ProjectType0 ?? "").Contains("8") ? "生产开发 " : "")
                @((Model.ProjectType0 ?? "").Contains("9") ? "品牌推广 " : "")
            </li>
            <li class="clear"></li>
        </ul>
        }
    }
        <div class="registerFormSubTitle">企业信息</div>
    @if (ViewBag.IsLogin)
    {
        <ul>
            <li class="formProp">单位名称：</li>
            <li class="formShortLine">
                @Model.CompanyName
            </li>
            <li class="clear"></li>
        </ul>
        <ul>
            <li class="formProp">单位地址：</li>
            <li class="formShortLine">
                @Model.Address
            </li>
            <li class="clear"></li>
        </ul>
        <ul>
            <li class="formProp">单位性质：</li>
            <li class="formShortLine">
                @Model.Type
            </li>
            <li class="clear"></li>
        </ul>
        <ul>
            <li class="formProp">所属行业：</li>
            <li class="formShortLine" style="width:400px">
                
                @foreach (var industry in CacheHelper<code_industry>.GetAll().OrderBy(c => c.Order))
                {
                   @(industries.Contains(industry.Id) ? industry.Title + " | " : "")
                        
                }
                @Model.IndustryOtherName
            </li>
            <li class="clear"></li>
        </ul>

        <ul>
            <li class="formProp">法人代表：</li>
            <li class="formShortLine">
                @Model.LegalPerson
            </li>
            <li class="clear"></li>
        </ul>
        <ul>
            <li class="formProp">负责人：</li>
            <li class="formShortLine">
                @Model.MainPerson
            </li>
            <li class="clear"></li>
        </ul>
        <ul>
            <li class="formProp">联系人：</li>
            <li class="formShortLine">
                @Model.Contacter
            </li>
            <li class="clear"></li>
        </ul>
        <ul>
            <li class="formProp">联系电话：</li>
            <li class="formShortLine">
                @Model.Tel
            </li>
            <li class="clear"></li>
        </ul>
        <ul>
            <li class="formProp">手机：</li>
            <li class="formShortLine">
                @Model.Mobile
            </li>
            <li class="clear"></li>
        </ul>
        <ul>
            <li class="formProp">传真：</li>
            <li class="formShortLine">
                @Model.Fax
            </li>
            <li class="clear"></li>
        </ul>
        <ul>
            <li class="formProp">Email：</li>
            <li class="formShortLine">
                @Model.Email
            </li>
            <li class="clear"></li>
        </ul>
        <ul>
            <li class="formProp">网址：</li>
            <li class="formShortLine">
                <a href="@Model.Url" style="color:#A4820B" target="_blank">@Model.Url</a>
            </li>
            <li class="clear"></li>
        </ul>
    }
    else
    {
        <p class="hCent redText">* 您尚未登录海峡两岸文博会网站，请登录后查看企业信息！
            <br /><strong><a href="/Home/Login?ReturnUrl=@Request.RawUrl" title="现在登录">现在登录>></a></strong> 
        </p>
    }
    </form>
    </div>
